<ion-view view-title="抢红包">
    <header class="bar bar-header bar-stable red-bar-header" ng-class="{true:'ios_bar',false:''}[Is_Ios]">
        <a href="javascript:void(0);" ui-sref="app.home" class="button button-icon ion-ios-arrow-left Whitefont-12" ng-class="{true:'ios_show',false:''}[Is_Ios]"></a>
        <h1 side="left" menu-toggle="left" class="title Whitefont-17" ng-class="{true:'ios_show',false:''}[Is_Ios]">活动列表</h1>
    </header>
    <ion-content class="redListSS">
        <ul>
            <li ng-repeat="item in redpacktData" ng-click="last(item.id,item.endtime,item.leavings)">
                <div class="nomargin noborder nopadding" style="overflow: hidden;">
                    <!--<img ng-src="{{item.posters ? item.posters : 'img/redlist.jpg'}}" height="130">-->
                    <div class="noborder nomargin nopadding" ng-style="item.posters" style="height:130px;background: url(img/redlist.jpg) no-repeat 50% 50%;background-size: cover;"></div>
                    <img class="ovimg" src="img/nored.png" alt="" ng-if="item.yiqingguang" width="120" height="120" style="top: -34px;right: -28px;width: 120px;">
                    <img class="ovimg" src="img/notime.png" alt="" ng-if="item.yiguoqi" width="120" height="120" style="top: -34px;right: -28px;width: 120px;">
                    <!--<div class="ovimg" ng-style="useit"  style="top: -34px;right: -28px;width: 120px;height: 120px;"></div>-->
                </div>
                <p class="lineHeight-40">{{item.starttime | date:'yyyy.MM.dd'}}-{{item.endtime | date:'yyyy.MM.dd'}}<span>{{item.number - item.leavings || 0}}人已抢</span> <span><img src="img/loginicons/icon_hongbao.svg" alt=""></span></p>
            </li>
            <!--<li>
                <div>
                    <img src="img/redlist.jpg">
                </div>
                <p>2017.02.02-2017.03.03<span>200人已抢</span> <span><img src="img/loginicons/icon_hongbao.svg" alt=""></span></p>
            </li>-->
            <!--<li>
                <img src="img/redlist.jpg">
                <p>2017.02.02-2017.03.03<span>200人已抢</span> <span><img src="img/loginicons/icon_hongbao.svg" alt=""></span></p>
            </li>-->
        </ul>
          <ion-infinite-scroll ng-if="!redpackIf.hasmore_redpack" immediate-check="false" on-infinite="redPacket()" distance="1%"></ion-infinite-scroll>
</ion-content>
</ion-view>
